package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 门店服务项目
 * </p>
 *
 * @author chenxuebin
 * @since 2020-07-04
 */
@TableName("t_store_item")
public class StoreItem extends Model<StoreItem> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 门店项目
     */
	private String name;
    /**
     * 项目编码
     */
	private String code;
    /**
     * 项目时长#分钟为单位30，60等
     */
	private Integer time;
    /**
     * 项目价格
     */
	private BigDecimal price;
    /**
     * 状态
     */
	private Integer state;
    /**
     * 项目图片
     */
	private String pic;
	private String info;
	private Long sid;
	private Long mpid;
	private Long creator;
	private Date createtime;
	private Long modifier;
	private Date modifytime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Integer getTime() {
		return time;
	}

	public void setTime(Integer time) {
		this.time = time;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info;
	}

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Long getCreator() {
		return creator;
	}

	public void setCreator(Long creator) {
		this.creator = creator;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "StoreItem{" +
			"id=" + id +
			", name=" + name +
			", code=" + code +
			", time=" + time +
			", price=" + price +
			", state=" + state +
			", pic=" + pic +
			", info=" + info +
			", sid=" + sid +
			", mpid=" + mpid +
			", creator=" + creator +
			", createtime=" + createtime +
			", modifier=" + modifier +
			", modifytime=" + modifytime +
			"}";
	}
}
